WPForms\Integrations\Square\Api\Api D

Total Complexity 178
Dependencies 43
Dependents 5
Total lines 1,706
Lines of code 723
Logical lines of code 486
Comment lines 625
Methods 61
Properties 5

Methods 61

Method Rating Maintainability Complexity Lines of code
check_required_args_subscription()
S
56 7 17
get_invoice_by_order_id()
S
55 6 21
add_response_errors_message()
S
58 6 14
perform_subscription_transaction()
S
54 5 22
get_latest_subscription_invoice()
S
57 5 18
get_response_errors()
S
58 5 16
send_search_catalog_request()
S
58 5 16
check_connection()
S
60 5 14
get_response_resource()
S
60 5 13
check_required_args_general()
S
62 5 11
get_card_details_from_transaction_id()
S
53 4 24
get_address_object()
S
56 4 18
perform_single_transaction()
S
56 4 18
get_latest_invoice_transaction_id()
S
59 4 16
create_order_request_set_line_items()
S
58 4 16
prepare_create_payment_request()
S
58 4 15
prepare_create_customer_request()
S
58 4 15
prepare_create_customer_card_request()
S
59 4 14
get_subscription_card()
S
61 4 14
create_order_request_set_discounts()
S
61 4 13
refund_payment()
S
57 3 17
send_create_payment_request()
S
58 3 16
create_payment_request_set_order()
S
59 3 14
send_create_plan_variations_request()
S
59 3 14
send_create_order_request()
S
59 3 14
send_create_plan_request()
S
59 3 14
send_create_customer_request()
S
59 3 14
send_update_subscription_request()
S
59 3 14
send_create_subscription_request()
S
59 3 14
send_create_customer_card_request()
S
59 3 14
get_plan_variation()
S
60 3 13
get_plan()
S
61 3 12
get_locations()
S
62 3 12
get_merchant()
S
62 3 12
cancel_subscription()
S
62 3 12
send_retrieve_card_request()
S
63 3 11
send_update_order_request()
S
63 3 11
retrieve_subscription()
S
63 3 11
process_single_transaction()
S
63 2 11
set_payment_tokens()
S
72 2 5
check_payment_tokens()
S
72 2 5
check_required_args_single()
S
72 2 5
get_update_subscription_request_object()
S
63 2 10
process_subscription_transaction()
S
65 2 10
update_subscription()
S
66 2 8
get_create_plan_variations_request_object()
S
60 1 12
get_errors()
S
82 1 3
prepare_create_order_request()
S
70 1 6
prepare_update_order_request()
S
75 1 4
get_create_subscription_request_object()
S
70 1 6
get_create_order_request_object()
S
66 1 8
get_idempotency_key()
S
79 1 3
get_update_order_request_object()
S
69 1 7
get_create_plan_request_object()
S
67 1 7
get_search_catalog_request_object()
S
66 1 8
get_create_customer_request_object()
S
73 1 5
prepare_create_subscription_request()
S
68 1 7
get_create_payment_request_object()
S
72 1 5
get_order_line_item_object()
S
66 1 8
get_order_discount_object()
S
66 1 8
__construct()
S
68 1 8